Repository navigation
Conversation
DeleteAccountCascade now removes the MapperAccountHolders rows of the deleted bank_id/account_id, and DeleteBankCascade removes them for every account of the bank through it. A holder row that outlived its account was read back by AuthUser.refreshUser (for example when the former holder created another account) and the five system views were granted on the deleted account again.
|
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The account cascade (
DELETE /obp/v4.0.0/management/cascading/banks/{BANK_ID}/accounts/{ACCOUNT_ID}) now also deletes the account holder rows (MapperAccountHolders) of the deleted bank_id/account_id, and the bank cascade removes them for every account of the bank, since it deletes each account through the account cascade. Holders of an account with the same ACCOUNT_ID at another bank are kept. With the holder gone, a later refresh of the former holder's accounts (AuthUser.refreshUser, which runs for example when that user creates another account) no longer grants the owner, ManageCustomViews and Berlin Group system views on the deleted account.DeleteAccountCascadeTestcovers the holder removal, the other-bank holder being kept, and that neither reading the deleted account as the former holder nor creating another account brings its account access back;DeleteBankCascadeTestcovers the holders of a deleted bank's accounts. Not covered yet: holder rows left behind by accounts deleted before this change.